// React组件测试
import { render, screen } from '@testing-library/react';
import PlaylistCard from '../../components/PlaylistCard';

test('显示播放列表名称', () => {
  render(<PlaylistCard playlist={{ name: '测试歌单' }} />);
  expect(screen.getByText(/测试歌单/i)).toBeInTheDocument();
});